Integrand size = 21, antiderivative size = 94 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=-\frac {(e f-d g) p x^2}{4 e}-\frac {p \left (f+g x^2\right )^2}{8 g}-\frac {(e f-d g)^2 p \log \left (d+e x^2\right )}{4 e^2 g}+\frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{4 g} \]
-1/4*(-d*g+e*f)*p*x^2/e-1/8*p*(g*x^2+f)^2/g-1/4*(-d*g+e*f)^2*p*ln(e*x^2+d) /e^2/g+1/4*(g*x^2+f)^2*ln(c*(e*x^2+d)^p)/g
Time = 0.02 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.04 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=\frac {d g p x^2}{4 e}-\frac {1}{8} g p x^4-\frac {d^2 g p \log \left (d+e x^2\right )}{4 e^2}+\frac {1}{4} g x^4 \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{2} f \left (-p x^2+\frac {\left (d+e x^2\right ) \log \left (c \left (d+e x^2\right )^p\right )}{e}\right ) \]
(d*g*p*x^2)/(4*e) - (g*p*x^4)/8 - (d^2*g*p*Log[d + e*x^2])/(4*e^2) + (g*x^ 4*Log[c*(d + e*x^2)^p])/4 + (f*(-(p*x^2) + ((d + e*x^2)*Log[c*(d + e*x^2)^ p])/e))/2
Time = 0.26 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.03, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2925, 2842, 49, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx\) |
\(\Big \downarrow \) 2925 |
\(\displaystyle \frac {1}{2} \int \left (g x^2+f\right ) \log \left (c \left (e x^2+d\right )^p\right )dx^2\) |
\(\Big \downarrow \) 2842 |
\(\displaystyle \frac {1}{2} \left (\frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{2 g}-\frac {e p \int \frac {\left (g x^2+f\right )^2}{e x^2+d}dx^2}{2 g}\right )\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \frac {1}{2} \left (\frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{2 g}-\frac {e p \int \left (\frac {(e f-d g)^2}{e^2 \left (e x^2+d\right )}+\frac {g (e f-d g)}{e^2}+\frac {g \left (g x^2+f\right )}{e}\right )dx^2}{2 g}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{2} \left (\frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{2 g}-\frac {e p \left (\frac {(e f-d g)^2 \log \left (d+e x^2\right )}{e^3}+\frac {g x^2 (e f-d g)}{e^2}+\frac {\left (f+g x^2\right )^2}{2 e}\right )}{2 g}\right )\) |
(-1/2*(e*p*((g*(e*f - d*g)*x^2)/e^2 + (f + g*x^2)^2/(2*e) + ((e*f - d*g)^2 *Log[d + e*x^2])/e^3))/g + ((f + g*x^2)^2*Log[c*(d + e*x^2)^p])/(2*g))/2
3.4.12.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_ ))^(q_.), x_Symbol] :> Simp[(f + g*x)^(q + 1)*((a + b*Log[c*(d + e*x)^n])/( g*(q + 1))), x] - Simp[b*e*(n/(g*(q + 1))) Int[(f + g*x)^(q + 1)/(d + e*x ), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m _.)*((f_) + (g_.)*(x_)^(s_))^(r_.), x_Symbol] :> Simp[1/n Subst[Int[x^(Si mplify[(m + 1)/n] - 1)*(f + g*x^(s/n))^r*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, q, r, s}, x] && Integer Q[r] && IntegerQ[s/n] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0 ] || IGtQ[q, 0])
Time = 0.85 (sec) , antiderivative size = 127, normalized size of antiderivative = 1.35
method | result | size |
parts | \(\frac {g \,x^{4} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right )}{4}+\frac {\ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) f \,x^{2}}{2}+\frac {\ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) f^{2}}{4 g}-\frac {p e \left (-\frac {g \left (-\frac {1}{2} e g \,x^{4}+d g \,x^{2}-2 f e \,x^{2}\right )}{2 e^{2}}+\frac {\left (g^{2} d^{2}-2 d e f g +e^{2} f^{2}\right ) \ln \left (e \,x^{2}+d \right )}{2 e^{3}}\right )}{2 g}\) | \(127\) |
parallelrisch | \(-\frac {-2 x^{4} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) e^{2} g +g p \,x^{4} e^{2}-4 x^{2} \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) e^{2} f -2 d g p \,x^{2} e +4 x^{2} e^{2} f p +2 \ln \left (e \,x^{2}+d \right ) d^{2} g p -8 \ln \left (e \,x^{2}+d \right ) d e f p +4 \ln \left (c \left (e \,x^{2}+d \right )^{p}\right ) d e f +2 d^{2} g p -4 d e f p}{8 e^{2}}\) | \(136\) |
risch | \(\text {Expression too large to display}\) | \(3275\) |
1/4*g*x^4*ln(c*(e*x^2+d)^p)+1/2*ln(c*(e*x^2+d)^p)*f*x^2+1/4*ln(c*(e*x^2+d) ^p)/g*f^2-1/2/g*p*e*(-1/2*g/e^2*(-1/2*e*g*x^4+d*g*x^2-2*f*e*x^2)+1/2*(d^2* g^2-2*d*e*f*g+e^2*f^2)/e^3*ln(e*x^2+d))
Time = 0.32 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.05 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=-\frac {e^{2} g p x^{4} + 2 \, {\left (2 \, e^{2} f - d e g\right )} p x^{2} - 2 \, {\left (e^{2} g p x^{4} + 2 \, e^{2} f p x^{2} + {\left (2 \, d e f - d^{2} g\right )} p\right )} \log \left (e x^{2} + d\right ) - 2 \, {\left (e^{2} g x^{4} + 2 \, e^{2} f x^{2}\right )} \log \left (c\right )}{8 \, e^{2}} \]
-1/8*(e^2*g*p*x^4 + 2*(2*e^2*f - d*e*g)*p*x^2 - 2*(e^2*g*p*x^4 + 2*e^2*f*p *x^2 + (2*d*e*f - d^2*g)*p)*log(e*x^2 + d) - 2*(e^2*g*x^4 + 2*e^2*f*x^2)*l og(c))/e^2
Time = 15.77 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.34 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=\begin {cases} - \frac {d^{2} g \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{4 e^{2}} + \frac {d f \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{2 e} + \frac {d g p x^{2}}{4 e} - \frac {f p x^{2}}{2} + \frac {f x^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{2} - \frac {g p x^{4}}{8} + \frac {g x^{4} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{4} & \text {for}\: e \neq 0 \\\left (\frac {f x^{2}}{2} + \frac {g x^{4}}{4}\right ) \log {\left (c d^{p} \right )} & \text {otherwise} \end {cases} \]
Piecewise((-d**2*g*log(c*(d + e*x**2)**p)/(4*e**2) + d*f*log(c*(d + e*x**2 )**p)/(2*e) + d*g*p*x**2/(4*e) - f*p*x**2/2 + f*x**2*log(c*(d + e*x**2)**p )/2 - g*p*x**4/8 + g*x**4*log(c*(d + e*x**2)**p)/4, Ne(e, 0)), ((f*x**2/2 + g*x**4/4)*log(c*d**p), True))
Time = 0.19 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.05 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=-\frac {e p {\left (\frac {e g^{2} x^{4} + 2 \, {\left (2 \, e f g - d g^{2}\right )} x^{2}}{e^{2}} + \frac {2 \, {\left (e^{2} f^{2} - 2 \, d e f g + d^{2} g^{2}\right )} \log \left (e x^{2} + d\right )}{e^{3}}\right )}}{8 \, g} + \frac {{\left (g x^{2} + f\right )}^{2} \log \left ({\left (e x^{2} + d\right )}^{p} c\right )}{4 \, g} \]
-1/8*e*p*((e*g^2*x^4 + 2*(2*e*f*g - d*g^2)*x^2)/e^2 + 2*(e^2*f^2 - 2*d*e*f *g + d^2*g^2)*log(e*x^2 + d)/e^3)/g + 1/4*(g*x^2 + f)^2*log((e*x^2 + d)^p* c)/g
Time = 0.32 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.52 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=\frac {2 \, {\left (e x^{2} + d\right )}^{2} g p \log \left (e x^{2} + d\right ) - {\left (e x^{2} + d\right )}^{2} g p + 2 \, {\left (e x^{2} + d\right )}^{2} g \log \left (c\right )}{8 \, e^{2}} - \frac {{\left (e x^{2} - {\left (e x^{2} + d\right )} \log \left (e x^{2} + d\right ) + d\right )} e f p - {\left (e x^{2} - {\left (e x^{2} + d\right )} \log \left (e x^{2} + d\right ) + d\right )} d g p - {\left (e x^{2} + d\right )} e f \log \left (c\right ) + {\left (e x^{2} + d\right )} d g \log \left (c\right )}{2 \, e^{2}} \]
1/8*(2*(e*x^2 + d)^2*g*p*log(e*x^2 + d) - (e*x^2 + d)^2*g*p + 2*(e*x^2 + d )^2*g*log(c))/e^2 - 1/2*((e*x^2 - (e*x^2 + d)*log(e*x^2 + d) + d)*e*f*p - (e*x^2 - (e*x^2 + d)*log(e*x^2 + d) + d)*d*g*p - (e*x^2 + d)*e*f*log(c) + (e*x^2 + d)*d*g*log(c))/e^2
Time = 1.49 (sec) , antiderivative size = 78, normalized size of antiderivative = 0.83 \[ \int x \left (f+g x^2\right ) \log \left (c \left (d+e x^2\right )^p\right ) \, dx=\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (\frac {g\,x^4}{4}+\frac {f\,x^2}{2}\right )-x^2\,\left (\frac {f\,p}{2}-\frac {d\,g\,p}{4\,e}\right )-\frac {g\,p\,x^4}{8}-\frac {\ln \left (e\,x^2+d\right )\,\left (d^2\,g\,p-2\,d\,e\,f\,p\right )}{4\,e^2} \]